<?php
foreach ($currTree as $v){ ?>
    <li nodeid="<?=$v['id']?>">
        <p>
            <span><?=$v['name']?></span>
        </p>
        <a href="javascript:void('添加子节点');" title="添加子节点" class="tree_add">添加子女</a>
        <a href="javascript:void('删除子节点');" title="删除子节点" class="tree_drop">删除</a> -
        <a href="javascript:void('移动到指定节点');" title="移动到指定节点" class="tree_moveto">移动到...</a>
        <ul>
            <?php W('Tree',['currTree'=>isset($list[$v["id"]])?$list[$v["id"]]:[],'list'=>$list,'tpl'=>'EditTreeWidget']);?>
        </ul>
    </li>
<?php } ?>
